from django.db import models
from hominin.taxonomy.models import Species

# Create your models here.

class Fossil(models.Model):
	specimen_name = models.CharField(max_length=30, unique=True)
	slug = models.SlugField(max_length=30)
	antiquity = models.CharField(max_length=50)
	type_specimen = models.CharField(max_length=3, blank=True, null=True)
	species = models.ForeignKey(Species)
	field_site = models.CharField(max_length=50)
	country = models.CharField(max_length=50)
	latitude = models.CharField(max_length=50)
	longitude = models.CharField(max_length=50)

	def __unicode__(self):
		return self.specimen_name
